;
;	IBM Personal Editor Pop-up Menu Configuration
;
Comment 	("Configured for the IBM Personal Editor")

;
;	Parameters
;
Sensitivity	(5, 8)		; (Xinc, Yinc)
Hysteresis	(4, 3)		; (AutoX, AutoY)
ReverseVideo	(Yes)		; Menu is displayed in reverse video
FixedMenu	(No)		; Menu is floating (centered on cursor)
EnableBeep	(No)		; Allows menu switching rather than beep

;
;	Cursor Definitions
;
ArrowKeys: Cursor
(
	Left   ([Left])
	Right  ([Right])
	Up     ([Up])
	Down   ([Down])
)

;
;	Button Definitions
;
LBE:	Button	(Menu(Edit))		; Left button, Edit Menu
LBT:	Button	(Menu(Text))		; Left button, Text Menu
LBL:	Button	(Menu(Line))		; Left button, Line Menu
LBB:	Button	(Menu(Block))		; Left button, Block Menu
LBH:	Button	(Menu(Help))		; Left button, Help Menu

MBM:	Button	(Menu(Motion))		; Middle button, Motion Menu
MBC:	Button	(Menu(Change))		; Middle button, Change Menu

RBF:	Button	(Menu(File))		; Right button, File Menu


;
;	Menu Definitions
;
Edit: Menu
(
	Title	("Edit")
	Item	("Text Menu",           Menu(Text), Button(LBT))
	Item	("Line Menu",           Menu(Line), Button(LBL))
	Item	("Block Menu",          Menu(Block), Button(LBB))
	Item	("Help Menu",           Keys([F1]), Button(LBH))
	Item	("Settings Menu",       Menu(Settings))
)

Text: Menu
(
	Title	("Text")
	Item	("Mark Text",           Keys([a-c]))
	Item	("Delete",              Keys([a-y] [a-d]))
	Item	("Move",                Keys([a-m]))
	Item	("Copy",                Keys([a-z]))
	Item	("Unmark",              Keys([a-u]))
	Item	("Mark Word",           Keys([a-F9]))
	Item	("Mark Line(s)",        Keys([a-l]))
	Item	("Mark to End of Line", Keys([a-F10]))
	Item	("Mark to Start of Line", Keys([a-0]))
	Item	("Insert/Replace",      Keys([Ins]))
	Item	("Reformat",            Keys([a-F1]))
	Item	("Line Menu",           Menu(Line), Button(LBL))
	Item	("Edit Menu",           Menu(Edit), Button(LBE))
)

Line: Menu
(
	Title	("Line")
	Item	("Mark Line(s)",        Keys([a-l]))
	Item	("Delete",              Keys([a-y] [a-d]))
	Item	("Move",                Keys([a-m]))
	Item	("Copy",                Keys([a-z]))
	Item	("Unmark",              Keys([a-u]))
	Item	("Mark Entire File",    Keys([a-1]))
	Item	("Delete Line",         Keys([c-backspace]))
	Item	("Erase Line",          Keys([F5]))
	Item	("Erase to End of Line",Keys([F6]))
	Item	("Insert Line",         Keys([F9]))
	Item	("Join",                Keys([a-j]))
	Item	("Split",               Keys([a-s]))
	Item	("Text Menu",           Menu(Text), Button(LBT))
	Item	("Edit Menu",           Menu(Edit), Button(LBE))
)

Block: Menu
(
	Title	("Block")
	Item	("Mark Block",          Keys([a-b]))
	Item	("Delete",              Keys([a-y] [a-d]))
	Item	("Move",                Keys([a-m]))
	Item	("Copy",                Keys([a-z]))
	Item	("Overlay Block",       Keys([a-o]))
	Item	("Unmark",              Keys([a-u]))
	Item	("Edit Menu",           Menu(Edit), Button(LBE))
)

Help: Menu
(
	Title	("Help")
	Item	("Next Page",           Keys([s-F1]))
	Item	("Previous Page",       Keys([s-F2]))
	Item	("Exit Help",           Keys([F4] [a-F2]), Button(LBE))
)

Settings: Menu
(
	Title	("Settings")
	Item	("Set Margins",         Keys([a-4]))
	Item	("Set Tabs",            Keys([a-5]))
	Item	("Set Display",         Keys([a-6]))
	Item	("Show Margins",        Keys([a-7]))
	Item	("Show Tabs",           Keys([a-8]))
	Item	("Show Memory",         Keys([a-9]))
)

Motion: Menu
(
	Title	("Motion")
	Item	("Execute",             Keys([c-Enter]))
	Item	("Locate Forward",      Keys([a-F3]))
	Item	("Locate Backward",     Keys([a-F4]))
	Item	("Change Menu",         Menu(Change), Button(MBC))
	Item	("Page Up",             Keys([PgUp]))
	Item	("Page Down",           Keys([PgDn]))
	Item	("Top of File",         Keys([c-Home]))
	Item	("Bottom of File",      Keys([c-End]))
	Item	("Command Line",        Keys([a-F5]))
)

Change: Menu
(
	Title	("Change")
	Item	("Global Change",       Keys([a-2]))
	Item	("Selective Change",    Keys([a-3]))
	Item	("Confirm Change",      Keys([s-F5]))
	Item	("Find Next Occurence", Keys([c-Enter]))
	Item	("Motion Menu",         Menu(Motion), Button(MBM))
)

File: Menu
(
	Title	("File")
	Item	("Directory A:",        Keys([s-F9]))
	Item	("Directory B:",        Keys([s-F10]))
	Item	("Change Buffers",      Keys([F8] [a-F2]))
	Item	("Goto Delete Buffer",  Keys([a-F6] [a-F2]))
	Item	("Edit File",           Keys([a-F7]))
	Item	("Name File",           Keys([a-F8]))
	Item	("Print File",          Keys([F7] [a-F2] [c-Enter]))
	Item	("Save File",           Keys([F2] [a-F2] [c-Enter]))
	Item	("Quit",                Keys([F4] [a-F2]))
	Item	("Save & Quit",         Keys([F3] [a-F2] [c-Enter]))
	Item	("Confirm (Yes)",       Keys("Y"))
	Item	("Deny (No)",           Keys("N"))
)

;
;	Mouse Definition
;
Mouse
(
	Left	(LBE)			; Left Button:	 Edit Menu
	Middle	(MBM)			; Middle Button: Motion Menu
	LeftRight(MBM)			; Left&Right Button Chord
	Right	(RBF)			; Right Button:  File Menu
	Cursor	(ArrowKeys)
)
